package com.osremake.server.net;

import org.jboss.netty.buffer.ChannelBuffer;

/**
 * @author kyle
 */
public class Packet {
    private int opcode;
    private int length;
    public enum Type {
        FIXED,
        BYTE,
        SHORT
    }
    private Type type;
    private ChannelBuffer buffer;

    public Packet(int opcode, int length, Type type, ChannelBuffer buffer) {
        this.opcode = opcode;
        this.length = length;
        this.type = type;
        this.buffer = buffer;
    }
}
